﻿using CanDichVu.Service.Iservice;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace CanDichVU.Controllers
{
    public class HomeController : Controller
    {
       private readonly ICate _icate;

       public HomeController(ICate icate)
       {
           this._icate = icate;
       }

        public ActionResult Index()
        {
            var _ListCate = _icate.getListByParent(0);
            return View(_ListCate);
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your app description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }



    }
}
